﻿using System.Web.Mvc;

namespace HTMLHelpers.Helpers
{
    public static class TableHelpers
    {
        public static string AlternateRowColor(this HtmlHelper helper,
            int row, string color)
        {
            if (row % 2 == 0)
                return "background-color:" + color;
            else
                return "";
        }
    }
}
